package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface CommentApi {
    Integer save(Comment comment1);

    List<Comment> findComment(String movementId, CommentType commentType , Integer page, Integer pagesize);

    Boolean hasComment(String id, Long userId, CommentType like);

    Integer remove(Comment comment);

    Integer likeComment(String commentId);

    Integer dislikeComment(String commentId);

    List<Comment> findComments(Long userId,CommentType commentType,Integer page,Integer pagesize);

    void saveVideoComments(Comment comment1);

    List<Comment> findCommentByVideoId(String id, CommentType comment,Integer page,Integer pagesize);

    PageResult findCommentByPage(String messageID, CommentType comment, Integer page, Integer pagesize);
}
